package com.woniu.controller;

import com.woniu.dto.AppliDto;
import com.woniu.service.InpatientApplicationService;
import com.woniu.utils.ResponseUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: zcy
 * @Create: 2025/10/31 15:36
 */
@RestController
@RequestMapping("/inpatientApplication")
public class InpatientApplicationController {
    @Resource
    private InpatientApplicationService inpatientApplicationService;
    /*
    * 添加住院申请
     */
    @PostMapping
    public ResponseUtil add(@RequestBody AppliDto appliDto){
        return inpatientApplicationService.add(appliDto);
    }
}
